﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Program
    {
        public static int Add(int x, int y)//定义静态方法实现整型数相加
        {
            return x + y;
        }
        static void Main(string[] args)
        {
            Console.WriteLine("{0}+{1}={2}", 23, 34, Program.Add(23, 34));//类名调用静态方法
            Console.ReadLine();
        }
    }
}
